package com.tpshion.cloud.oss.controller;

import com.tpshion.cloud.common.support.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Value("${spring.application.name:unknow}")
    private String appName;

    @GetMapping("/test")
    public Result<?> test(){
        return Result.ok(appName+" is running...");
    }
}
